#http://www.stuartellis.eu/articles/postgresql-setup/
#http://www2.russbrooks.com:8000/2009/5/25/install-ubuntu-9-04-server-edition-rails-php-passenger-postgresql-and-mysql
sudo -u postgres psql template1
# ALTER ROLE postgres WITH ENCRYPTED PASSWORD 'mypassword';
# \q

sudo nano /etc/postgresql/8.4/main/postgresql.conf
>listen_addresses = '*'

sudo nano /etc/postgresql/8.4/main/pg_hba.conf
>#local   all         postgres                          ident
>host    all         all         192.168.0.0/16          md5

sudo /etc/init.d/postgresql-8.4 restart

